import cv2 as cv
def video_demo():
    capture = cv.VideoCapture('E:\yolov3\VIDEOtes\VID_20201214_154655.mp4')
    while True:
        ret, frame = capture.read()
        if ret is False:
            break
        cv.imshow('video', frame)
        c = cv.waitKey(40)
        if c == 27:
            break
    '''while True:
        ret, frame = capture.read()
        #frame = cv.flip(frame, -1)
        cv.imshow('video', frame)
        c = cv.waitKey(50)
        if c == 27:
            break
    '''
video_demo()